//
// Created by admin on 2022/10/21.
//

#ifndef LEARN_OPENCV_BENCHMARK_TEST_HPP
#define LEARN_OPENCV_BENCHMARK_TEST_HPP
#include <benchmark/benchmark.h>

#define BENCHMARK_REGISTER(funcName,func) \
     static void funcName(benchmark::State &state){\
        for(const auto & _:state){\
            func();\
        }\
     }                                    \
BENCHMARK(funcName)

#endif //LEARN_OPENCV_BENCHMARK_TEST_HPP
